home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / xgopher.1.3 / Documents / Porting < prev    next >
Encoding:
Text File  |  1993-05-25  |  10.4 KB  |  251 lines

  1. Installing Xgopher on host computer
  2. -----------------------------------
  3.  
  4. This document describes some of the problems that have been reported
  5. to me when installing Xgopher on different computer systems.  I have
  6. included as complete a description of the problem and its solution
  7. as I can.  In most cases I do not have access to these other systems
  8. and can only report second-hand information.
  9.  
  10. There are sections below for Sun and Hewlett-Packard workstations.
  11. In another section, "Personal testing" I list the machines on which
  12. I have personally compiled and tested Xgopher.
  13.  
  14.  
  15. Sun: Solaris 2.1
  16. ----------------
  17.  
  18. If you receive unresolved externals from the loader including
  19. routines as socket, connect, and others, you need to add the
  20. option "-lsocket" to the Imakefile.  If you are missing the routines
  21. inet_addr, gethostbyname, and gethostname, then you need to add
  22. "-lnsl".   The place to do this is on the line the distributed Imakefile
  23. that reads
  24.  
  25.   EXTRA_LIBRARIES  = -lm
  26. change this to
  27.   EXTRA_LIBRARIES  = -lm -lsocket -lnsl
  28.  
  29. This line is also commented out in a block with others.  You need
  30. to remove the comments.  Don't forget to run xmkmf again to 
  31. rebuild the Makefile!
  32.  
  33.     [ According to Ian MacPhedran:
  34.         Compiled fine for me with both X11R5 and OpenWindows 3.x.
  35.  
  36.         Notes: Requires both -DSYSV and -DSVR4 
  37.  
  38.         When compiling under OpenWindows, I required linking to extra libraries:
  39.         -lsocket -lnsl
  40.     ]
  41.  
  42.  
  43. I want to thank
  44.     Ian MacPhedran <macphed@dvinci.usask.ca> and
  45.     Edwin Allum <edwin@csri.toronto.edu>
  46. for the Solaris port.
  47.  
  48.  
  49.  
  50. Sun
  51. ---
  52.  
  53. "Cannot connect to host" messages.  
  54.      These are the result of Xgopher not finding the correct name
  55.      resolver to convert a host name such as gopher.uiuc.edu into an
  56.      internet address as 128.174.33.160.  
  57.  
  58.      I have had some people say that they need to use -lresolv
  59.      on the load command to get Xgopher to work, and others that insist
  60.      that -lresolve NOT be used since then Xgopher will use the NIS
  61.      name server for resolving the address.  If using or omitting
  62.      -lresolve works for you, great.  Unfortunately, though, this
  63.      probably is not the solution that will help you.
  64.  
  65.      For a full discussion of the problem and recommended solutions,
  66.      see the document "Sun-names" included with the Xgopher distribution.
  67.  
  68.  
  69. Sun: Open Windows
  70. ----------------
  71.  
  72. This section applies mostly to people trying to compile Xgopher with
  73. Sun's OpenWindows, Release 3.  If you use MIT's X11R5 distribution most
  74. of these problems will not affect you.  You cannot compile Xgopher with
  75. Sun's OpenWindows, Release 2.
  76.  
  77. There are two problems you are likely to encounter besides those
  78. addressed in the README file.  One is the "connect" problem mentioned
  79. in the previous section.
  80.  
  81. If you have compiled Xgopher with OW3, but are executing Xgopher with
  82. remote display to another system, then you are not executing the
  83. Sun-supplied script "openwin" ($OPENWINHOME/bin/openwin).  Therefore,
  84. some environment variables are not set which may be needed to let X
  85. (OW3) find the app-defaults resource file.  Try adding the following
  86. line to one of your startup files.  This is for csh, a slightly different
  87. syntax is used for sh.
  88.  
  89.     setenv XFILESEARCHPATH $OPENWINHOME/lib/%T/%N%S
  90.  
  91. In fact, the following value is suggested in the "Frequently Asked
  92. Questions" list of the Sun system managers news group in the internet
  93. (using sh syntax!):
  94.  
  95.         XFILESEARCHPATH=$OPENWINHOME/lib/%T/%N%S:/usr/lib/X11/%T/%N%S
  96.         export XFILESEARCHPATH
  97.  
  98.     If you use X11R5, you might instead want
  99.     /usr/lib/X11/%L/%T/%N%C%S:
  100.     /usr/lib/X11/%l/%T/%N%C%S:
  101.     /usr/lib/X11/%T/%N%C%S:
  102.     /usr/lib/X11/%L/%T/%N%S:
  103.     /usr/lib/X11/%l/%T/%N%S:
  104.     /usr/lib/X11/%T/%N%S:
  105.     $OPENWINHOME/lib/%T/%N%S
  106.     (put all this on one line, though, with no spaces!)
  107.  
  108.  
  109. Xgopher cannot find its application resources (defaults) file.  If you
  110. have installed the resources file in a non-standard location, read this.
  111. The above solution will also work, but this is a nice description.
  112. (Thanks to R.Stewart(Stew) Ellis for identifying this solution.)
  113.      
  114.      The startup routine for OW3 shipped by Sun sets XFILESEARCHPATH.
  115.      This is set in the shell script "openwin" stored in the bin directory
  116.      of $OPENWINHOME.  The default value is $OPENWINHOME/lib/%T/%N%S.
  117.  
  118.      If you store your X application defaults files (e.g., Xgopher.ad)
  119.      somewhere else, like in the X11R5 tree, you'd better have
  120.      XFILESEARCHPATH also indicate that directory.  For example, if your
  121.      files are stored under /usr/local/X11R5/lib/X11, you can add this
  122.      directory to your search path.  One way to do this is by putting
  123.      the following setenv into your .login file before starting OpenWindows:
  124.  
  125.          setenv XFILESEARCHPATH /usr/local/X11R5/lib/X11/%T/%N%S
  126.  
  127.      (X will normally change the %T value above to "app-defaults".)
  128.  
  129.  
  130. Hewlett-Packard
  131. ---------------
  132.  
  133. If you have trouble linking Xgopher, it may be that some functions
  134. are getting loaded from libPW.a.  The xmkmf may be adding libPW.a
  135. (-lPW) to the Makefile load library list.  You should remove the 
  136. reference to -lPW.  I don't think that libPW.a is needed by Xgopher.
  137.  
  138. Here is a helpful news posting explaining the problem that was provided
  139. to me by <hardy@golem.ps.uci.edu>:
  140.  
  141. +-----------------------------------------------------------------------------+
  142. ! Date: 8 Dec 92 15:35:33 GMT                                                 !
  143. ! References: <1992Dec6.205954.1835@lub001.lamar.edu>                         !
  144. ! Sender: gcagle@dracula (Greg Cagle)                                         !
  145. ! Reply-To: greg_cagle@mentorg.com                                            !
  146. ! Organization: Mentor Graphics                                               !
  147. ! Lines: 23                                                                   !
  148. ! Nntp-Posting-Host: dracula.mentorg.com                                      !
  149. !                                                                             !
  150. ! Try man regcmp:                                                             !
  151. !                                                                             !
  152. !       regcmp and regex are kept in /lib/libPW.a, and are linked by using the!
  153. !       -lc and -lPW options to the ld or cc command.  See WARNINGS below.    !
  154. ! ...                                                                         !
  155. !                                                                             !
  156. !  WARNINGS                                                                   !
  157. !       regcmp and regex are kept in /lib/libPW.a.  Unfortunately,            !
  158. !       /lib/libPW.a also contains some functions that have the same names as !
  159. !       functions contained in the default C library, /lib/libc.a.  To prevent!
  160. !       unexpected results due to these name conflicts, always search libc    !
  161. !       before searching libPW.  This is done with the ld (or cc) command line!
  162. !       option sequence -lc -lPW which satisfies all standard C functions     !
  163. !       from libc then searches libPW for the regcmp and regex functions      !
  164. !       (there is also an implied -lc following the explicit -lPW to satisfy  !
  165. !       any additional C functions required by regcmp and regex).             !
  166. !                                                                             !
  167. ! - Greg                                                                      !
  168. ! --------------------------------------------------------------------------- !
  169. ! Greg Cagle                                      Mentor Graphics Corporation !
  170. ! greg_cagle@mentorg.com                         Platform Technology Division !
  171. ! (503)685-1570                                                               !
  172. +-----------------------------------------------------------------------------+
  173.  
  174.  
  175.  
  176. Interactive(SunSoft) Unix 3.0 (with Interactive's X11R4 2.0)
  177. ------------------------------------------------------------
  178. Xgopher 1.3 (beta) was instlled by Sinisa Novosel (sinisa@thphys.irb.hr)
  179. on an ISC Unix system.  I have included #ifdef's in the Xgopher
  180. source based on Sinisa's experience.  The following changes should also
  181. be made:
  182.     1) One nasty thing should be done:
  183.        in file /usr/include/X11/Intrinsic.h ,
  184.        line #36 (#include <X11/Xos.h>)  should be commented-out.
  185.     
  186.     2) add -DISCX into Imakefile ('DEFINES' field)
  187.     
  188. Thanks for this port to:
  189.     - Sinisa Novosel, SysAdm, Institute Rugjer Boskovic, Croatia, Zagreb,-
  190.     -                         dep. Theor.Physics                         -
  191.     - sinisa@thphys.irb.hr
  192.  
  193.  
  194.  
  195. Personal Testing
  196. ----------------
  197.  
  198. I have had access to and have been able to compile and execute Xgopher
  199. on the following platforms.  Each one gave a clean compile with no
  200. warnings using the default imake that is provided with the version of
  201. X indicated.  The exception is the build with OpenWindows 3 on a Sun
  202. which required the work-arounds mentioned in the README file.
  203.  
  204.  
  205.  . IBM RS/6000 model 220 and other models running AIX 3.2.1
  206.        client:   MIT's X11R5
  207.        X server: IBM's AIXWindows 1.2.1
  208.        NOTE:     (If you compile with IBM's X11R4 you may still need to
  209.                   compile the Athena widget library yourself.  Compile all
  210.           the stuff under /usr/lpp/X11/Xamples, or just that library.)
  211.  
  212.  . Sun 4 (SparcStation) running SunOS 4.1.2
  213.        client:   MIT's X11R5
  214.        X server: Sun's OpenWindows 3 and remote display
  215.  
  216.        client:   Sun's OpenWindows 3
  217.        X server: Sun's OpenWindows 3 and remote display
  218.  
  219.  . Sun 4 (SparcStation) running Solaris 2.1, with /usr/ucb/cc compiler
  220.        client:   Sun's OpenWindows 3
  221.        X server: remote display
  222.  
  223.  . Sequent running Dynix 3.1.1 (a BSD-derived system)
  224.        client:   MIT's X11R5 - libraries and client compiled with gcc
  225.        X server: display to remote machine
  226.  
  227.  . Intel 486/33 running BSD/386 1.0 from BSD, Inc.
  228.        client:   MIT's X11R5 - libraries and client compiled with cc (gcc)
  229.        X server: X386 and a proprietary X386 server for high performance
  230.  
  231.  . Convex running ConvexOS (Unix)
  232.        client:   MIT's X11R5
  233.        X server: display to remote machine
  234.  
  235.  . Silicon Graphics IRIS-4D running IRIX 4.0.1
  236.        client:   Whatever SGI supplied (X11R4 variant)
  237.        X server: display to remote machine
  238.  
  239.  . Various X servers have been tested including IBM X terminals.
  240.  
  241.  
  242.  
  243. Feedback
  244. --------
  245.  
  246. Please!  If you find portability problems in Xgopher, report them
  247. to me by e-mail (Allan Tuchman, a-tuchman@uiuc.edu).  I do not
  248. read news often enough and some of the articles age off the system
  249. before I see them.  Any portability problems reported to me are
  250. normally fixed in the next release.
  251.